home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Dev
/
SpeakFreely_Src
/
html.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-05-27
|
526b
|
39 lines
/*
HTML utility routines
*/
#include "speakfree.h"
/* OUTHTML -- Transcribe a string to an HTML output file, quoting
HTML special characters as necessary. */
void outHTML(fp, s)
FILE *fp;
char *s;
{
int c;
while ((c = *s++) != 0) {
switch (c) {
case '&':
fputs("&", fp);
break;
case '<':
fputs("<", fp);
break;
case '>':
fputs(">", fp);
break;
default:
fputc(c, fp);
break;
}
}
}